package com.comstar.cnp.caserver;

import cn.hutool.core.util.StrUtil;
import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Client
 *
 * @author wangrui
 * @date 2022/2/16 15:20
 */
@Slf4j
@SpringBootApplication
@EnableDubboConfiguration
public class CaServerClient implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(CaServerClient.class);
    }

    @Value("${server.port}")
    private String serverPort;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.error("接口地址：http://localhost:{}/doc.html", serverPort);
    }
}
